home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
5mods_3.arj
/
DREAM28.MOD
next >
Wrap
Text File
|
1994-01-20
|
5KB
|
138 lines
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: Dream28.Mod Date: January 9, 1994 │
│ Difficulty: █▒▒▒▒▒▒▒▒▒▒ Mod Authors: Unca Scrooge │
│ WWIV Version: 4.23 1@8398 WWIVnet │
│ Files Affected: LILO.C 1@8398 ICEnet │
│ Description: New and improved logon info! 1@8351 ImagiNet │
└────────────────────────────────────────────────────────────────────────────┘
Long Desc : There was a request for a new logon info mod on modnet
a day or two ago, so here's one! :) Gives more info than
the stock version did, and boxes it in nice and neat.
NOTE: If you add/delete any of the ^P colors, be SURE to
make up for it in the spacing (ie: %-30s...), it can
get tricky!
Disclaimer : Whatever.
Da Mod
Step 1 : Open up LILO.C and search for void logon(... and edit this line
char s[255],s1[181],s2[81],s3[81],s4[81],s5[101],s6[81],*ss;
// add s3 s4 s5 s6
Now, further down in logon(), replace the ENTIRE code from
if (live_user) {
nl();
outstr(get_string(237));
pl(nam(&thisuser,usernum));
outstr(get_string(363)); npr("%d\r\n", (int) ((nsl()+30)/60.0));
to
npr("%s%d\r\n",get_string(1171),instance);
with this following chunk...
if (live_user) {
npr("╔%s╗\r\n",charstr(77,'─'));
npr("│Name/Alias .... %-30s Security Level .. %-12d│\r\n",
nam(&thisuser,usernum),thisuser.sl);
sprintf(s3,"%d Minutes",(int) ((nsl()+30)/60.0));
npr("│Time Allowed .. %-32s Transfer Level .. %-12d│\r\n",
s3,thisuser.dsl);
npr("│Mail Waiting .. %-30d Times on Today .. %-12d│\r\n",
thisuser.waiting,thisuser.ontoday);
if (!sysop2())
strcpy(s3,"Not Available");
else
strcpy(s3,"Available");
npr("│Sysop is ..... %-30s Illegal Logons .. %-12d│\r\n",
s3,thisuser.illegal);
read_status();
/****************************************************************************/
/*
* Do NOT remove or modify this part of the code. If the registration number
* (or an indicator that it is unregistered) is not printed out, it will
* be plainly obvious that this is a 'pirated' version of the source code.
*/
if (syscfg.wwiv_reg_number)
sprintf(s," (Reg #%ld)",syscfg.wwiv_reg_number);
else
strcpy(s," (Unregistered)");
strcpy(s3,wwiv_version);
strcat(s3,s);
npr("│System is ..... %-36s Post Ratio ...... %-12.3f│\r\n",s3,post_ratio())
;
/****************************************************************************/
npr("│Last Modded ... %-30s File Ratio ...... %-12.3f│\r\n",
wwiv_date,ratio());
npr("│Calls Today ... %-30d Files you've UL . %-12d│\r\n",
status.callstoday,thisuser.uploaded);
npr("│Posts Today ... %-30d Files you've DL . %-12d│\r\n",
status.msgposttoday,thisuser.downloaded);
npr("│Uploads Today . %-30d Min. in Bank .... %-12d│\r\n",
status.uptoday,thisuser.banktime);
sprintf(s4,"%d Min.",status.activetoday);
npr("│Number Users .. %-30d Active Today .... %-18s│\r\n",
status.users,s4);
if (multitasker) {
switch (multitasker) {
case 1 :
dv=get_dv_version();
sprintf(s5,"DESQView %d.%02d",dv/256,dv%256);
break;
case 2 :
win=get_win_version();
sprintf(s5,"Windows %d.%02d",win%256,win/256);
break;
case 3 :
win=get_win_version();
dv=get_dv_version();
sprintf(s5,"Win %d.%02d and DV %d.%02d",
win%256,win/256,dv/256,dv%256);
break;
case 4 :
sprintf(s5,"OS/2 %d.%2.2d",_osmajor/10,_osminor);
break;
default:
strcat(s5,"Unknown");
}
} else
strcat(s5,"None");
npr("│Multitasker ... %-30s Current Node .... %-12d│\r\n",
s5,instance);
for (i=0; i<net_num_max; i++) {
if (net_networks[i].sysnum) {
sprintf(s,"│%s %s",net_networks[i].name,get_string(370));
strcat(s,charstr(16-strlen(stripcolors(s)),'.'));
sprintf(s1,"%s @%u",s,net_networks[i].sysnum);
if (i)
npr("%-88s│\r\n",s1);
else {
sprintf(s6," (net%u)",status.net_version);
strcat(s1,s6);
npr("%-94s│\r\n",s1);
}
}
}
npr("╚%s╝\r\n",charstr(77,'─'));
Save LILO.C and recompile...
Enjoy and email me if ya have a problem!